<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${base}/css/login.css" />
<link rel="icon" href="${base}/images/favicon.ico" type="image/x-icon" />
<title>用户登录</title>
<script type="text/javascript">
// 如果当前页面在框架内则跳出框架
if(self && self.frameElement && self.frameElement.tagName
	&& (typeof self.frameElement.tagName === "string") 
	&& (self.frameElement.tagName.toLowerCase() === "iframe")) {
	parent.parent.location = "${base}/login.do";
}
</script>
</head>

<body>
<!-- header begin -->
<#include "/common/header.ftl"/>
<!-- header end -->
<div id="Main">
	<h2><img src="${base}/images/suo.gif" /> 用户登录</h2>
    <div class="login">
      	<form id="loginForm" name="loginForm" action="${base}/j_spring_security_check" method="post">
			<#if Session["SPRING_SECURITY_LAST_EXCEPTION"]?? && (Session["SPRING_SECURITY_LAST_EXCEPTION"].message)??>
				<div id="globalError">
		        	<span style="color:red;margin-top:0;margin-bottom:0"><em>${Session["SPRING_SECURITY_LAST_EXCEPTION"].message}</em></span>
	        	</div>
			</#if>
        	<div>
	        	<label>用户名：</label>
	        	<#if Session['SPRING_SECURITY_LAST_USERNAME']??>
	        		<input type="text" name="j_username" id="j_username" value="${Session['SPRING_SECURITY_LAST_USERNAME']}"/>
	        	<#else>
	        		<input type="text" name="j_username" id="j_username" />
	        	</#if>
	        	
	        	<span class="f_red"><em></em></span>
        	</div>
            <div>
            	<label>密　码：</label>
            	<input type="password" name="j_password" id="j_password" />
            	<span class="f_red"><em></em></span>
            </div>
			<div>
	        	<label>记住密码：</label>
	        	<input type="checkbox" name="_spring_security_remember_me" />
	        	<span class="f_red"><em></em></span>
        	</div>
        	<input type="submit" id="btn_login" value=" "/>
        </form>
    </div>
    <span><img src="${base}/images/login_xian.gif" style="float:left" /></span>
    <div class="point">
    	<h4>温馨提示：</h4>
        如果您还不是洛卡网会员请点击<a href="${base}/register.do">立即注册</a><br />

        如果您忘记了登录密码请点击<a href="${base}/retrieve_pwd.jsp">找回密码</a><br />
        如果还有其他问题请<a href="${base}/aboutus/contact.jsp">联系我们</a>
    </div>
    <div class="clear"></div>
</div>
<!-- footer start -->
<#include "/common/footer.ftl"/>
<!-- footer end -->
<script type="text/javascript" src="${base}/js/lib/jquery.validate.js"></script>  
<script type="text/javascript" src="${base}/js/login.js"></script>
</body>
</html>